home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / gfx / daggex / docs / clients / fvwm / system.fvwmrc < prev   
Encoding:
Text File  |  1994-06-04  |  9.9 KB  |  331 lines

  1. ###########################################################################
  2. # set up the colors
  3. #
  4. # OK some people like bright clear colors on their window decorations.
  5. # These people, I guess would mostly be from nice sunny/good weather places
  6. # line California.
  7. #
  8. # StdForeColor         Black
  9. # StdBackColor        LightSkyBlue
  10. # HiForeColor         yellow
  11. # HiBackColor        PeachPuff1
  12. # PagerBackColor    BlanchedAlmond
  13.  
  14. # Me, I'm from Upstate New York, and live in New Hampshire, so I prefer
  15. # these dark muddy colors...
  16.  
  17. # this is used for non-selected windows, menus, and the panner
  18. StdForeColor         Black
  19. StdBackColor         #60a0c0
  20.  
  21. # this is used for the selected window
  22. HiForeColor         Black
  23. HiBackColor         #c06077
  24.  
  25. #PagerBackColor        #5c54c0
  26. #PagerForeColor        orchid
  27.  
  28. ############################################################################
  29. # Now the fonts - one for menus/icons, another for window titles
  30. #Font            -adobe-helvetica-medium-r-*-*-*-120-*-*-*-*-*-*
  31. #WindowFont        -adobe-helvetica-bold-r-*-*-*-120-*-*-*-*-*-*
  32. #IconFont        -adobe-helvetica-medium-r-*-*-*-100-*-*-*-*-*-*
  33. # PagerFont is used to mark windows in the Pager with their icon names.
  34. # This is really only useful for DeskTopScale < 20 or so
  35. #PagerFont        5x8
  36.  
  37. ###########################################################################
  38. # Set up the major operating modes
  39. #
  40. # Set windows to auto-raise after 750 milliseconds if you like it.
  41. # Autoraise can sometimes obscure pop-up windows. Performance is now
  42. # similar to olvwm's auto-raise feature.
  43. AutoRaise 750
  44.  
  45. # Normally, we'll be in focus-follows mouse mode, but uncomment this 
  46. # for mwm-style click-to-focus
  47. #ClickToFocus
  48.  
  49. # Auto Place Icons is a nice feature....
  50. # This creates two icon boxes, one on the left side, then one on the
  51. # bottom. Leaves room in the upper left for my clock and xbiff,
  52. # room on the bottom for the Pager.
  53. IconBox -67 1 -1 100
  54. IconBox -150 90 -5 -140
  55. IconBox 5 -140 -140 -5
  56.  
  57. # If you uncomment this, and make sure that the WindowList is bound to
  58. # something, it works pretty much like an icon manager.
  59. #SuppressIcons
  60.  
  61. # If you don't like the default 150 msec click delay for the complex functions
  62. # change this and uncomment it.
  63. #ClickTime 150
  64.  
  65. ###########################################################################
  66. # Set up the virtual desktop and pager
  67.  
  68. #set the desk top size in units of physical screen size
  69. #DeskTopSize 2x2
  70.  
  71. # and the reduction scale used for the panner/pager
  72. #DeskTopScale 32
  73.  
  74. # Use the Fvwm Pager
  75. #Pager -5 -5
  76.  
  77. #The pager is automatically sticky, but I like it to StayOnTop
  78. #StaysOnTop Fvwm Pager
  79.  
  80. #The pager is automatically sticky, but I like it without a title
  81. NoTitle Fvwm Pager
  82.  
  83. #Might as well leave it out of the window list too...
  84. WindowListSkip Fvwm Pager
  85.  
  86.  
  87. # flip by whole pages on the edge of the screen.
  88. EdgeScroll 100 100
  89. # A modest delay before flipping pages seems to be nice...
  90. # I thresh in a 50 pixel Move-resistance too, just so people
  91. # can try it out.
  92. EdgeResistance 250 50
  93.  
  94. ############################################################################
  95. # list the windows that don't want a title bar
  96. NoTitle xclock
  97. NoTitle oclock
  98. NoTitle xdclock
  99. NoTitle Clock
  100. NoTitle xbiff
  101. NoTitle xload
  102. NoTitle xterm
  103.  
  104. ###########################################################################
  105. # Here's where I could list NoBorder windows that don't get frames.
  106. # If a window shows up with NoTitle and NoBorder, it gets no decorations
  107. # at all.
  108. # When windows are NoBordered, they look a bit like twm is handling them
  109. #NoBorder xterm
  110.  
  111. ##########################################################################
  112. # now the windows that "Stick to the glass", ie don't scroll with the
  113. # desktop
  114. Sticky xclock
  115. Sticky xdclock
  116. Sticky oclock
  117. Sticky Clock
  118. Sticky xbiff
  119.  
  120. ############################################################################
  121. # now list windows that want to "stay on top," ie stay visible until
  122. # explicitly lowered
  123. # I got tired of this, except for the pager.
  124. #StaysOnTop xclock
  125. #StaysOnTop xdclock
  126. #StaysOnTop oclock
  127. #StaysOnTop Clock
  128.  
  129. ############################################################################
  130. # now list windows that don't need to show up in the window list
  131. WindowListSkip Clock
  132. WindowListSkip xbiff
  133. WindowListSkip xclock
  134. WindowListSkip oclock
  135.  
  136. ############################################################################
  137. # define some common icon bitmaps
  138.  
  139. # These are the color icons.
  140. # Of course, you need to change the directory to the one where they
  141. # really live.
  142. Icon "xterm"       /usr/include/X11/pixmaps/xterm.xpm
  143. Icon "Fvwm Pager"  /usr/include/X11/pixmaps/fvwm.xpm
  144. Icon "xcalc"       /usr/include/X11/pixmaps/xcalc.xpm
  145. Icon "xbiff"       /usr/include/X11/pixmaps/mail1.xpm
  146. Icon "xman"       /usr/include/X11/pixmaps/xman.xpm
  147. Icon ""            /usr/include/X11/pixmaps/unknown1.xpm
  148.  
  149. # Here are some monchrome icon bitmaps that everyone should have
  150. Icon "xterm"        /usr/include/X11/bitmaps/Term
  151. # I have included a default.xbm in the fvwm_icons subdirectory
  152. Icon ""            /usr/include/X11/bitmaps/default.xbm
  153.  
  154. ##############################################################################
  155. #now define the menus - defer bindings until later
  156.  
  157. # This menu is invoked as a sub-menu - it allows you to quit,
  158. # restart, or switch to another WM.
  159. Popup "Quit-Verify"
  160.     Title    "Really Quit Fvwm?"
  161.     Quit    "Yes, Really Quit"
  162.     Restart "Restart Fvwm" fvwm
  163.     Restart "Start twm" twm
  164.     Restart "Start mwm" mwm
  165.     Restart "Start olwm" /usr/openwin/bin/olwm
  166.     Nop    ""
  167.     Nop    "No, Don't Quit"
  168. EndPopup
  169.  
  170. # This menu will fire up some very common utilities
  171. Popup "Utilities"
  172.     Title     "Utilities"
  173.     Exec    "Xterm"        exec xterm &
  174.     Exec    "Top"        exec rxvt -T Top -n Top -e top &
  175.     Exec    "Calculator"    exec xcalc &
  176.     Exec    "Xman"        exec xman &
  177.     Exec    "Xmag"        exec xmag &
  178.     Exec    "Xload"        exec xload &
  179.     Nop    ""
  180.     Popup    "Exit Fvwm"    Quit-Verify
  181.     Nop    ""
  182.     Refresh    "Refresh Screen"
  183. EndPopup
  184.  
  185. # This defines the most common window operations
  186. Popup "Window Ops"
  187.     Title    "Window Ops"
  188.     Move    "Move"
  189.     Resize  "Resize"
  190.     Raise   "Raise"
  191.     Lower   "Lower"
  192.     Iconify "(De)Iconify"
  193.     Stick    "(Un)Stick"
  194.     Maximize "(Un)Maximize"
  195.     Maximize "(Un)Maximize Vertical"    0 100
  196.     Nop     ""
  197.     Destroy "Destroy"
  198.     Delete  "Delete"
  199. EndPopup
  200.  
  201.  
  202. ############################################################################
  203. # Now define some handy complex functions
  204.  
  205. # This one moves and then raises the window if you drag the mouse,
  206. # only raises the window if you click,  or does a RaiseLower if you double 
  207. # click
  208. Function "Move-or-Raise"
  209.     Move         "Motion"
  210.     Raise        "Motion"
  211.     Raise        "Click"
  212.     RaiseLower    "DoubleClick" 
  213. EndFunction
  214.  
  215. # This one moves and then lowers the window if you drag the mouse,
  216. # only lowers the window if you click,  or does a RaiseLower if you double 
  217. # click
  218. Function "Move-or-Lower"
  219.     Move         "Motion"
  220.     Lower        "Motion"
  221.     Lower        "Click"
  222.     RaiseLower    "DoubleClick"
  223. EndFunction
  224.  
  225. # This one resizes and then raises the window if you drag the mouse,
  226. # only raises the window if you click,  or does a RaiseLower if you double 
  227. # click
  228. Function "Resize-or-Raise"
  229.     Resize         "Motion"
  230.     Raise        "Motion"
  231.     Raise        "Click"
  232.     RaiseLower    "DoubleClick"
  233. EndFunction
  234.  
  235.  
  236. ##############################################################################
  237. # This defines the mouse bindings
  238.  
  239. # First, for the mouse in the root window
  240. # Button 1 gives the Utilities menu
  241. # Button 2 gives the Window Ops menu
  242. # Button 3 gives the WindowList (like TwmWindows)
  243. # I use the AnyModifier option for the modifier field, so you can hold down
  244. # any shift-control-whatever combination you want!
  245.  
  246. #     Button    Context Modifi     Function
  247. Mouse 1        R       A       PopUp "Utilities"
  248. Mouse 2        R        A          PopUp "Window Ops"
  249. Mouse 3        R        A          WindowList
  250.  
  251.  
  252.  
  253. # Now the title bar buttons
  254. # Any button in the left title-bar button gives the window ops menu
  255. # Any button in the right title-bar button Iconifies the window
  256. # Note the use of "Mouse 0" for AnyButton.
  257.  
  258. #     Button    Context Modifi     Function
  259. Mouse 0        1        A          PopUp "Window Ops"
  260. Mouse 0        2        A         Iconify
  261.  
  262. # Now the rest of the frame
  263. # Here I invoke my complex functions for Move-or-lower, Move-or-raise,
  264. # and Resize-or-Raise. 
  265. # Button 1 in the corner pieces, with any modifiers, gives resize or raise
  266. Mouse 1        F    A    Function "Resize-or-Raise"
  267. # Button 1 in the title, sides, or icon, w/ any modifiers, gives move or raise
  268. Mouse 1        TSI    A    Function "Move-or-Raise"
  269. # Button 2 in an icon, w/ any modifiers, gives de-iconifies
  270. Mouse 2        I    A    Iconify
  271. # Button 2 in the corners, sides, or title-bar gives the window ops menu
  272. Mouse 2        FST    A    PopUp "Window Ops"
  273. # Button 3 anywhere in the decoration (except the title-bar buttons)
  274. # does a move-or-lower
  275. Mouse 3        TSIF    A    Function "Move-or-Lower"
  276.  
  277.  
  278. ############################################################################
  279. # Now some keyboard shortcuts.
  280.  
  281. # Arrow Keys
  282. # press arrow + control anywhere, and scroll by 1 page
  283. Key Left    A    C    Scroll -100 0
  284. Key Right    A    C    Scroll +100 +0
  285. Key Up        A    C    Scroll +0   -100
  286. Key Down    A    C    Scroll +0   +100
  287.  
  288. # press arrow + meta key, and scroll by 1/10 of a page
  289. Key Left    A    M    Scroll -10 +0
  290. Key Right    A    M    Scroll +10 +0
  291. Key Up        A    M    Scroll +0   -10
  292. Key Down    A    M    Scroll +0   +10
  293.  
  294. # press shift arrow + control anywhere, and move the pointer by 1% of a page
  295. Key Left    A    SC    CursorMove -1 0
  296. Key Right    A    SC    CursorMove +1 +0
  297. Key Up        A    SC    CursorMove +0   -1
  298. Key Down    A    SC    CursorMove +0   +1
  299.  
  300. # press shift arrow + meta key, and move the pointer by 1/10 of a page
  301. Key Left    A    SM    CursorMove -10 +0
  302. Key Right    A    SM    CursorMove +10 +0
  303. Key Up        A    SM    CursorMove +0   -10
  304. Key Down    A    SM    CursorMove +0   +10
  305.  
  306. # Keyboard accelerators
  307. Key F1        A    M    Popup "Utilities"
  308. Key F2        A    M    Popup "Window Ops"
  309. Key F3        A    M    WindowList
  310. Key F4        A    M    Iconify
  311. Key F5        A    M    Move
  312. Key F6        A    M    Resize
  313. Key F7        A    M    CirculateUp
  314. Key F8        A    M    CirculateDown
  315.  
  316. #Page Up/Dapge Down keys are used to scroll by one desktop page
  317. # in any context, press page up/down + control
  318. # in root context, just pressing page up/down is OK
  319. # I prefer the non-wrapping scroll. These are for example purposes only
  320. #Key Next    A       C       Scroll 100000 0
  321. #Key Next    R       N       Scroll 100000 0  
  322. #Key Prior    A       C       Scroll -100000 0
  323. #Key Prior    R       N       Scroll -100000 0
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.